package com.zeyun.EasyOnlineShareCloud.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zeyun.EasyOnlineShareCloud.common.database.BaseDO;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 下载记录持久层实体
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "t_record")
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RecordDO extends BaseDO {
	/**
	 * 记录ID
	 */
	@TableId(type = IdType.AUTO)
	private Long id;

	/**
	 * 文件ID
	 */
	private String fileId;

	/**
	 * IP
	 */
	private String ip;

	/**
	 * 用户id
	 */
	private String userId;

	/**
	 * 操作类型：up-上传，down-下载，delete-删除
	 */
	private String genre;
}